package com.aizhixin.lab.resource.repository;

import com.aizhixin.lab.resource.entity.DirFile;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface DirFileRepository extends JpaRepository<DirFile, Long> {
    List<DirFile> findByDirIdAndDeleteFlag(Long dirId, Integer deleteFlag);
    DirFile findByIdAndDeleteFlag(Long id, Integer deleteFlag);
    DirFile findById(Long id);
    Integer countByTypeAndDeleteFlag(Integer type,Integer deleteFlag);


}
